Navigate to “Sublime Text 2” -> “Preferences” -> “Key Bindings - User”, which will bring up a preferences file. Copy this code between the square brackets.
Just Ctrl+Shift+P (or Command+Shift+P on MacOS) to open the tools pallet, type reindent, and pick Indentation: Reindent Lines. It should reindent all the file ...
You can use the Tag plugin(install from package control). Then just press ctrl + shift + p , and type tag . You'll see the option Auto-Format tags on document.
Automatic Indentation Sublime Text will automatically increase and decrease the indentation levels at the appropriate times. While the built in logic works for ...